<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>颜色_第2种表示_rgb或rgba</title>
    <style>
        /* .atguigu {
            color: rgb(255, 0, 0);
        }
        .atguigu {
            color: rgb(138, 43, 26);
        } */
        .atguigu {
            color: rgb(100%, 0%, 0%);
        }
        .atguigu {
            color: rgba(100%, 0%, 0%,0.5);
        }
        .atguigu2 {
            color: hsla(233, 73%, 48%, 0.981);
        }

    </style>
</head>
<body>
    <h2  class="atguigu">尚硅谷</h2>
    <h2  class="atguigu2">尚硅谷</h2>
</body>
</html>